package ooday01;

public class Car {
    String brand;//品牌
    String color;
    int price;
    Car(String brand,String color,int price){
       this.brand=brand;
       this.color=color;
       this.price=price;
    }
     void start(){//启动
        System.out.println(brand+"品牌的，"+color+"颜色的"+price+"价格的汽车启动了");
    }
    void run(){//跑
        System.out.println(brand+"品牌的，"+color+"颜色的"+price+"价格的汽车开始跑了");
    }
    void stop(){
        System.out.println(brand+"品牌的，"+color+"颜色的"+price+"价格的汽车停止了");
    }
}
